package com.zcf.controller;


import com.zcf.common.json.Body;
import com.zcf.service.PumpingLogServiceImpl;
import com.zcf.service.PumpingServiceImpl;
import com.zcf.vo.out.LayuiJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZhaoQi
 * @since 2019-07-29
 */
@Controller
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/pumpingLog")
public class PumpingLogController {
    @Autowired
    private PumpingLogServiceImpl pumpingLogService;

    /**
    * @description :查询今日抽水总账
    * @date : 2019/11/29 9:45
    * @author : jj
    */
    @PostMapping("ledger" )
    @ResponseBody
    public LayuiJson toDayPumping(){
        LayuiJson body = pumpingLogService.toDayPumping();
        return body;
    }


}

